import {Button, View, Text, Image} from 'react-native';
import React, {Component} from 'react';

function OtherScreen({navigation, route, props}) {
  function goOther1() {
    console.log(navigation.state);
    navigation.navigate('webview', {
      url: 'https://www.baidu.com',
    });
  }

  const styles = {
    image: {
      width: 100,
      height: 100
    }
  }

  return (
    <View>
      <Text>测试api页面</Text>
      <Image
        source={require('./images/img01.png')}
        style={styles.image}
      />
      <Button title="Go to 其他1" onPress={goOther1} />
    </View>
  );
}

export default OtherScreen;
